-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Choropleth Counties #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choropleth Counties #929
Conversation
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a lot of extra newlines added at the bottom of this file
plotly/version.py
Outdated
@@ -1 +1 @@ | |||
__version__ = '2.3.0' | |||
__version__ = '2.3.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be 2.4.0 https://semver.org/
@@ -11,6 +11,7 @@ | |||
|
|||
import numpy as np | |||
from scipy.spatial import Delaunay | |||
import os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did os
need to be imported for the added choropleth test? It doesn't look like it below.
fig['layout']['yaxis']['range'][0] = center[1] - new_height * 0.5 | ||
fig['layout']['yaxis']['range'][1] = center[1] + new_height * 0.5 | ||
|
||
return fig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline at the end of file recommended
Do we need this xml file? |
Just to confirm, the current version of this FigureFactory in this PR generates these plots? |
@@ -557,7 +557,7 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, | |||
""" | |||
# ensure optional modules imported | |||
if not gp or not shapefile or not shapely: | |||
raise ImportError("geopandas, shapefile and shapely must be " | |||
raise ImportError("geopandas, pyshp and shapely must be " | |||
"installed for this figure factory") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add the pip statements here? For example, "Try pip install geopandas and pip install pyshp in your terminal."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. we can add it to the docs as well to remind in two places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm
confirmed
There's a mismatch between this notebook and the plots. I think you updated the plots, but didn't upload the new notebook: https://plot.ly/~AdamKulidjian/6680 Mind uploading the latest? |
Here's the latest notebook: https://plot.ly/~AdamKulidjian/6681 |
Re: #897